export const adminRouter = {
    name: 'layout',
    path: '/',

    //通用母版页
    component: () =>
        import('@views/layout'),

    //功能页面路由
    children: [{
            name: 'home',
            path: 'home',
            meta: {
                title: '总览',
                icon: 'el-icon-house'
            },
            component: () =>
                import('@light-app/views/home/index')
        },
        {
            name: 'project',
            path: 'project',
            meta: {
                title: '项目',
                icon: 'el-icon-office-building'
            },
            children: [{
                    name: 'allProject',
                    path: 'allProject',
                    meta: {
                        title: '项目总览',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/project/allProject')
                },
                {
                    name: 'mineproject',
                    path: 'mineproject',
                    meta: {
                        title: '我的项目',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/project/allProject')
                }
                // {
                //     name: 'milestone',
                //     path: 'milestone',
                //     meta: {
                //         title: '项目里程碑',
                //         icon: 'icon-home'
                //     },
                //     component: () =>
                //         import('@light-app/views/project/milestone')
                // }
            ]
        },
        {
            name: 'statistics',
            path: 'statistics',
            meta: {
                title: '统计',
                icon: 'el-icon-office-building'
            },
            children: [{
                name: 'employeeRanking',
                path: 'employeeRanking',
                meta: {
                    title: '排名',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/statistics/employeeRanking')
            }]
        },
        {
            name: 'work',
            path: 'work',
            meta: {
                title: '工作',
                icon: 'el-icon-suitcase'
            },
            children: [{
                name: 'allWeekly',
                path: 'allWeekly',
                meta: {
                    title: '周报总览',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/works/allWeekly')
            }, {
                name: 'weekly',
                path: 'weekly',
                meta: {
                    title: '周报',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/works/weekly')
            }, {
                name: 'monthPlan',
                path: 'monthPlan',
                meta: {
                    title: '月计划',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/works/monthPlan')
            }]
        },
        {
            name: 'performance',
            path: 'performance',
            meta: {
                title: '绩效',
                icon: 'el-icon-document-checked',
            },
            children: [{
                    name: 'performanceOverview',
                    path: 'performanceOverview',
                    meta: {
                        title: '我的绩效',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/performanceOverview')
                },
                {
                    name: 'performanceAppraisal',
                    path: 'performanceAppraisal',
                    meta: {
                        title: '绩效管理',
                        icon: 'icon-home'
                    },
                    children: [{
                        name: 'merits',
                        path: 'merits',
                        meta: {
                            title: '绩效考核',
                            icon: 'icon-home'
                        },
                        component: () =>
                            import('@light-app/views/performance/performanceAppraisal/merits/indexTest.vue')
                    }, {
                        name: 'quality',
                        path: 'quality',
                        meta: {
                            title: '质量考核管理',
                            icon: 'icon-home'
                        },
                        component: () =>
                            import('@light-app/views/performance/performanceAppraisal/quality')
                    }, ]
                },
                {
                    name: 'monthPerformance',
                    path: 'monthPerformance',
                    meta: {
                        title: '季度绩效',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/monthPerformance')
                },
                {
                    name: 'yearPerformance',
                    path: 'yearPerformance',
                    meta: {
                        title: '年度绩效',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/yearPerformance')
                },
                {
                    name: 'projectPerformance',
                    path: 'projectPerformance',
                    meta: {
                        title: '项目经理考核',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/projectPerformance')
                },
                {
                    name: 'appraisalFormGeneration',
                    path: 'appraisalFormGeneration',
                    meta: {
                        title: '考核单生成',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/appraisalFormGeneration')
                }
            ]
        },
        {
            name: 'install',
            path: 'install',
            meta: {
                title: '设置',
                icon: 'el-icon-setting'
            },
            children: [{
                name: 'projectClassic',
                path: 'projectClassic',
                meta: {
                    title: '项目类别',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/install/projectClassic')
            }, {
                name: 'projectStage',
                path: 'projectStage',
                meta: {
                    title: '项目阶段',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/install/projectStage')
            }, {
                name: 'projectDispose',
                path: 'projectDispose',
                meta: {
                    title: '类别阶段配置',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/install/projectDispose')
            }, {
                name: 'setManage',
                path: 'setManage',
                meta: {
                    title: '管理员设置',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/install/setManage')
            }, {
                name: 'setMenu',
                path: 'setMenu',
                meta: {
                    title: '菜单设置',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/install/menu')
            }, {
                name: 'performanceSet',
                path: 'performanceSet',
                meta: {
                    title: '绩效设置',
                    // icon: 'el-icon-document-checked',
                },
                children: [{
                    name: 'performanceSetClassic',
                    path: 'performanceSetClassic',
                    meta: {
                        title: '分类管理',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/install/performanceSet/performanceSetClassic')
                }, {
                    name: 'performanceSetProject',
                    path: 'performanceSetProject',
                    meta: {
                        title: '考核项管理',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/install/performanceSet/performanceSetProject')
                }, {
                    name: 'performanceSetDot',
                    path: 'performanceSetDot',
                    meta: {
                        title: '考核点管理',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/install/performanceSet/performanceSetDot')
                }]
            }, {
                name: 'rightsSet',
                path: 'rightsSet',
                meta: {
                    title: '权限设置',
                    // icon: 'el-icon-document-checked',
                },
                children: [{
                    name: 'regionSet',
                    path: 'regionSet',
                    meta: {
                        title: '域',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/install/rightsSet/regionSet')
                }, {
                    name: 'roleSet',
                    path: 'roleSet',
                    meta: {
                        title: '角色',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/install/rightsSet/roleSet')
                }, {
                    name: 'ruleSet',
                    path: 'ruleSet',
                    meta: {
                        title: '规则',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/install/rightsSet/ruleSet')
                }]
            }, ]
        }, {
            name: 'organize',
            path: 'organize',
            meta: {
                title: '组织',
                icon: 'el-icon-user'
            },
            children: [{
                name: 'assessmentRelationship',
                path: 'assessmentRelationship',
                meta: {
                    title: '考核关系',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/organize/assessmentRelationship')
            }, {
                name: 'userManage',
                path: 'userManage',
                meta: {
                    title: '用户管理',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/organize/userManage')
            }]
        }
    ]
}

export const perRouter = {
    name: 'layout',
    path: '/',

    //通用母版页
    component: () =>
        import('@views/layout'),

    //功能页面路由
    children: [{
            name: 'home',
            path: 'home',
            meta: {
                title: '总览',
                icon: 'el-icon-house'
            },
            component: () =>
                import('@light-app/views/home/index')
        },
        {
            name: 'project',
            path: 'project',
            meta: {
                title: '项目',
                icon: 'el-icon-office-building'
            },
            children: [{
                    name: 'allProject',
                    path: 'allProject',
                    meta: {
                        title: '项目总览',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/project/allProject')
                },
                {
                    name: 'mineproject',
                    path: 'mineproject',
                    meta: {
                        title: '我的项目',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/project/allProject')
                }
            ]
        },
        {
            name: 'statistics',
            path: 'statistics',
            meta: {
                title: '统计',
                icon: 'el-icon-office-building'
            },
            children: [{
                name: 'employeeRanking',
                path: 'employeeRanking',
                meta: {
                    title: '排名',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/statistics/employeeRanking')
            }]
        },
        {
            name: 'work',
            path: 'work',
            meta: {
                title: '工作',
                icon: 'el-icon-suitcase'
            },
            children: [{
                name: 'weekly',
                path: 'weekly',
                meta: {
                    title: '周报',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/works/weekly')
            }, {
                name: 'monthPlan',
                path: 'monthPlan',
                meta: {
                    title: '月计划',
                    icon: 'icon-home'
                },
                component: () =>
                    import('@light-app/views/works/monthPlan')
            }]
        },
        {
            name: 'performance',
            path: 'performance',
            meta: {
                title: '绩效',
                icon: 'el-icon-document-checked',
            },
            children: [{
                    name: 'performanceOverview',
                    path: 'performanceOverview',
                    meta: {
                        title: '我的绩效',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/performanceOverview')
                },
                {
                    name: 'performanceAppraisal',
                    path: 'performanceAppraisal',
                    meta: {
                        title: '绩效管理',
                        icon: 'icon-home'
                    },
                    children: [{
                        name: 'merits',
                        path: 'merits',
                        meta: {
                            title: '绩效考核',
                            icon: 'icon-home'
                        },
                        component: () =>
                            import('@light-app/views/performance/performanceAppraisal/merits/indexTest.vue')
                    }, {
                        name: 'quality',
                        path: 'quality',
                        meta: {
                            title: '质量考核管理',
                            icon: 'icon-home'
                        },
                        component: () =>
                            import('@light-app/views/performance/performanceAppraisal/quality')
                    }, ]
                    // component: () =>
                    //     import('@light-app/views/performance/performanceAppraisal/indexTest.vue')
                },
                {
                    name: 'monthPerformance',
                    path: 'monthPerformance',
                    meta: {
                        title: '季度绩效',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/monthPerformance')
                },
                {
                    name: 'yearPerformance',
                    path: 'yearPerformance',
                    meta: {
                        title: '年度绩效',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/yearPerformance')
                },
                {
                    name: 'projectPerformance',
                    path: 'projectPerformance',
                    meta: {
                        title: '项目经理考核',
                        icon: 'icon-home'
                    },
                    component: () =>
                        import('@light-app/views/performance/projectPerformance')
                }
            ]
        }
    ]
}

export default {
    adminRouter,
    perRouter
}